<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>旋转rotate</title>
    <style>
        img{
            width: 100px;
            /* 顺时针45度 */
            /* transform: rotate(45deg); */
            border-radius: 50%;
            border: 2px solid lightblue;
            /* 谁做动画 过渡加在谁身上  注意秒数单位 */
            transition:all 0.4s;
        }
        img:hover{
            /* 注意单位deg */
            transform: rotate(360deg);
        }
    </style>
</head>
<body>
    <img src="../shoping/images/success.png" alt="">
</body>
</html>